/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package idea.model.qnrlibrary;


import java.io.Serializable;
import java.math.BigInteger;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;


/**
 *
 * @author rejun001
 */
@Entity
@Table( name = "question_title_link_view" )
@XmlRootElement
@NamedQueries( 
{
    @NamedQuery( name = "QuestionTitleLinkView.findAll" , query = "SELECT q FROM QuestionTitleLinkView q" ) ,
    @NamedQuery( name = "QuestionTitleLinkView.findByQnrQuestId" , query = "SELECT q FROM QuestionTitleLinkView q WHERE q.qnrQuestId = :qnrQuestId" ) ,
    @NamedQuery( name = "QuestionTitleLinkView.findByQnrId" , query = "SELECT q FROM QuestionTitleLinkView q WHERE q.qnrId = :qnrId" ) ,
    @NamedQuery( name = "QuestionTitleLinkView.findByQuestId" , query = "SELECT q FROM QuestionTitleLinkView q WHERE q.questId = :questId" ) ,
    @NamedQuery( name = "QuestionTitleLinkView.findByQuestSequence" , query = "SELECT q FROM QuestionTitleLinkView q WHERE q.questSequence = :questSequence" ) ,
    @NamedQuery( name = "QuestionTitleLinkView.findByCategory" , query = "SELECT q FROM QuestionTitleLinkView q WHERE q.category = :category" ) ,
    @NamedQuery( name = "QuestionTitleLinkView.findByTitle" , query = "SELECT q FROM QuestionTitleLinkView q WHERE q.title = :title" ) ,
    @NamedQuery( name = "QuestionTitleLinkView.findByVersion" , query = "SELECT q FROM QuestionTitleLinkView q WHERE q.version = :version" )
} )
public class QuestionTitleLinkView implements Serializable
{
    private static final long serialVersionUID = 1L;
    @Id
    @Basic( optional = false )
    @Column( name = "qnr_quest_id" )
    private String qnrQuestId;
    @Column( name = "qnr_id" )
    private String qnrId;
    @Column( name = "quest_id" )
    private String questId;
    @Column( name = "quest_sequence" )
    private BigInteger questSequence;
    @Column( name = "category" )
    private String category;
    @Column( name = "title" )
    private String title;
    @Column( name = "version" )
    private BigInteger version;


    public QuestionTitleLinkView()
    {
    }


    public String getQnrQuestId()
    {
        return qnrQuestId;
    }


    public void setQnrQuestId( String qnrQuestId )
    {
        this.qnrQuestId = qnrQuestId;
    }


    public String getQnrId()
    {
        return qnrId;
    }


    public void setQnrId( String qnrId )
    {
        this.qnrId = qnrId;
    }


    public String getQuestId()
    {
        return questId;
    }


    public void setQuestId( String questId )
    {
        this.questId = questId;
    }


    public BigInteger getQuestSequence()
    {
        return questSequence;
    }


    public void setQuestSequence( BigInteger questSequence )
    {
        this.questSequence = questSequence;
    }


    public String getCategory()
    {
        return category;
    }


    public void setCategory( String category )
    {
        this.category = category;
    }


    public String getTitle()
    {
        return title;
    }


    public void setTitle( String title )
    {
        this.title = title;
    }


    public BigInteger getVersion()
    {
        return version;
    }


    public void setVersion( BigInteger version )
    {
        this.version = version;
    }
    
}
